import 'dayjs/locale/zh-cn';
import React from 'react';
import { useAccess } from 'umi';
import TargetGroup from './components/target/TargetGroup';
import TrendCard from './components/trend/TrendCard';
import OverallGroup from './components/overall/OverallGroup';
import Business from './components/business';

export default (): React.ReactNode => {
  const access = useAccess();

  return (
    <>
      <TargetGroup />
      <TrendCard />
      <OverallGroup />
      {access.showAdmin ? <Business /> : <></>}
    </>
  );
};
